<%--

  @author Kusal Samarakoon
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<script src="${pageContext.request.contextPath}/js/printer.js" type="text/javascript"></script>
<%--<link rel="stylesheet" href="${pageContext.request.contextPath}/css/printDetailForm.css" media="print"/>--%>

<%--<script type="text/javascript">


    $(function () {
        $('#cancelBtnId').val($('#cancelBtn').val());
        $('#printBtnId').val($('#printBtn').val());

    });


</script>--%>


<div id="app-info-module-home-title" class="module-home-title">
    <s:a href="home.do"><img src="${pageContext.request.contextPath}/images/post_letter.png"
                                    alt="Initial Application Acknowledgement"><span><s:label
            value="%{getText('initialApplicationAcknowledgement_tooltip')}"/></span></s:a>
</div>
<s:if test="hasActionErrors() || hasActionMessages()">
    <div id="message-box" class="message-box">
        <div class="action-msg"><s:actionmessage/></div>
        <div class="action-err"><s:actionerror/></div>
    </div>
</s:if>

<%--<div id="printbtn" class="form-button-div right-align">

    <input type="button" id="printBtnId" onclick="printPage('appacknowledgement', 'A4', 'P');"/>
    <input class="printButton" type="button" id="cancelBtnId" onclick="goBack();"/>

</div>--%>

<s:include value="../printCaller.jsp"/>


<div id="printDivId" class="form-outer">

    <s:label value="Divisional Secretariat" cssClass="float-left"/><br>
    <s:label name="user.getDsDivisions().iterator().next().getEnDivisionName()" cssClass="float-left"/><br>

    <br>

    <s:label name="landApplication.getHolder().getName()" cssClass="float-left"/><br>
    <s:label name="landApplication.getHolder().getContacts().getAddress()" cssClass="float-left"/><br>

    <br>

    <s:label value="Dear Applicant, " cssClass="float-left"/>&nbsp;&nbsp;<%--<s:label name="headOfGO.name"
                                                                           cssClass="float-left"/><s:label value=","
                                                                                                           cssClass="float-left"/>--%><br>
    <s:if test="landApplication.getInitialStatus().ordinal()==1">
        <p style="text-align:justify;">Your application has been registered. <br></p>


    </s:if>
    <s:else>
        <p style="text-align:justify;">Your application has been rejected. <br></p>
    </s:else>

    <p style="text-align:justify;">Please use the following reference number for future correspondence.</p>

    <p style="text-align:justify;">Reference Number :
        <s:label name="landApplication.getRefNumber()"/></p>  </br>

    <%--<s:if test="landApplication.getStatus().ordinal()==1">

    <p style="text-align:justify;">--- User Login Detail --- </p>

    <p style="text-align:justify;">Site Url :
        <s:label name="@lk.icta.common.AppConstants@APPLICATION_URL"/></p>
    <p style="text-align:justify;">User Name :
        <s:label name="landApplication.getHolder().getSlcUser().getUsername()"/></p>
    <p style="text-align:justify;">Password :
        <s:label name=" landApplication.getHolder().getSlcUser().getPasswordHash()"/></p> </br>

    </s:if>--%>


    <s:label value="Regards," cssClass="float-left"/><br><br>
    <s:label value="-----------------------------" cssClass="float-left"/> <br>
    <s:label value="(Signature)" cssClass="float-left"/> <br>
     <s:label value="Divisional Secretariat" cssClass="float-left"/> <br>
    <s:label value="ORDS" cssClass="float-left"/> <br>
    <hr>
</div>

<%--<s:hidden id="printBtn" value="%{getText('print.label')}"/>
<s:hidden id="cancelBtn" value="%{getText('back.label')}"/>--%>
<%--
<div id="printbtn" class="form-button-div right-align">
    &lt;%&ndash;<input type="button" value="Print" id="print"  class="print-btn">&ndash;%&gt;
    <input type="button" value="Print" onclick="printLetterPage();">

</div>
--%>




